Skip to content

Conversation

coltea
Copy link
Contributor

@coltea coltea commented Sep 28, 2025

PR 标题

Web App 的着陆页设置

相关 Issue

变更类型

请勾选适用的变更类型:

  • Bug 修复 (不兼容变更的修复)
  • 新功能 (不兼容变更的新功能)
  • 功能改进 (不兼容现有功能的改进)
  • 文档更新
  • 依赖更新
  • 重构 (不影响功能的代码修改)
  • 测试用例
  • CI/CD 配置变更
  • 其他 (请描述):

变更内容

详细描述本次 PR 的具体变更内容:

  1. Web App 的着陆页设置

测试情况

描述本次变更的测试情况:

  • 已本地测试
  • 已添加测试用例
  • 不需要测试 (理由: )

其他说明

任何其他需要说明的事项:

@coltea
Copy link
Contributor Author

coltea commented Sep 28, 2025

@MonkeyCode-AI 干活了

Copy link

@monkeycode-ai monkeycode-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我是 MonkeyCode AI 编程助手,你可以在 GitHub 任意仓库的任意 Issue 或 PR 中 at @MonkeyCode-AI 来呼唤我。

Pull Request 概述

此 PR 主要添加了一个新的配置项 WebAppLandingSettings,用于支持 Web App 的着陆页设置。从代码质量和安全性等方面来看,没有发现明显的问题。

Pull Request 变更详情

此 PR 添加了 Web App 着陆页的相关配置及数据结构。

变更详情
文件路径 变更类型 变更内容
backend/docs/docs.go 修改 添加了 WebAppLandingSettings 的 Swagger 文档定义
backend/docs/swagger.json 修改 添加了 WebAppLandingSettings 的 JSON Schema 定义
backend/docs/swagger.yaml 修改 添加了 WebAppLandingSettings 的 YAML Schema 定义
backend/domain/app.go 修改 定义了 WebAppLandingSettings 数据结构,并将其集成到 AppSettings 和 AppSettingsResp 中
backend/usecase/app.go 修改 在应用设置的响应中增加了 WebAppLandingSettings 字段

@coltea coltea force-pushed the feat-web-app-landing-settings branch from 172c9fe to 775802e Compare October 10, 2025 08:27
@coltea coltea force-pushed the feat-web-app-landing-settings branch 3 times, most recently from e8e7615 to 03dab76 Compare October 15, 2025 08:19
@xiaomakuaiz
Copy link
Collaborator

@MonkeyCode-AI review一下

@xiaomakuaiz xiaomakuaiz requested a review from Copilot October 15, 2025 08:22
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces web app landing page settings functionality to the PandaWiki system. The changes enable configuration of customizable landing pages for web applications with various content sections including banners, document categories, carousels, and FAQ sections.

Key changes include:

  • Added new WebAppLandingSettings domain structure with comprehensive configuration options
  • Enhanced the node recommendation API to support categorized document lists
  • Updated app settings to include home page configuration and landing page settings

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
backend/usecase/node.go Modified node recommendation logic to support categorized document lists and new response structure
backend/usecase/app.go Added node repository dependency and integrated landing page settings into app configuration
backend/handler/share/node.go Updated API handler to use new structured response format for node recommendations
backend/domain/app.go Added comprehensive WebAppLandingSettings structure and HomePageSetting enum
backend/consts/app.go Added HomePageSetting constants for doc and custom page types
backend/cmd/api/wire_gen.go Updated dependency injection to include node repository in app usecase
backend/api/share/v1/node.go Restructured API types to support categorized node recommendations
backend/docs/* Updated API documentation to reflect new response structures

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@coltea coltea force-pushed the feat-web-app-landing-settings branch from 03dab76 to a43ffdc Compare October 15, 2025 08:40
@xiaomakuaiz xiaomakuaiz merged commit 44aeffb into chaitin:main Oct 15, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants